package com.eliota.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.plugins.pagination.PageDTO;
import com.eliota.controller.dto.UserDto;
import com.eliota.entity.Project;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author MG
 * @since 2023-04-01
 */
@Mapper
public interface ProjectMapper extends BaseMapper<Project> {


    Page<Project> findProjectPage(Page<Project> page, @Param("projectName") String projectName);

    @Update("update project set project.status = 1 where project.project_id = #{projectId}")
    void statusChange(Integer projectId);


}
